package com.uplooking.test;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.uplooking.pojo.Sales;

public class Demo1 {
     
	@Test
	public void Test01() {
		ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
		
		Sales sales=(Sales) applicationContext.getBean("vivo");
		sales.sale();
		sales.sag();
		sales.hh("老王");
		System.out.println("-----------");
	}
}
